<?php

class Adept_Renderer_MessageList extends Adept_Renderer_Message
{

    public function render($component)
    {
        $messages = $component->getMessages();
        $writer = $component->getWriter();
        
        $writer->write('<ul class="messageList">');
        foreach($messages as $message) {
            $writer->write('<li>');
            $this->renderMessage($message, $writer);
            $writer->write('</li>');
        }
        $writer->write('</ul>');
    }

}